﻿<?xml version="1.0" encoding="utf-8"?>
<!--
    This file is part of "Information Connections Engine".

    "Information Connections Engine" is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    "Information Connections Engine" is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with "Information Connections Engine".  If not, see http://www.gnu.org/license.
-->
<xs:schema id="iceErrorSchema"
    targetNamespace="InformationConnectionsEngine.error"
    elementFormDefault="qualified"
    xmlns="InformationConnectionsEngine.error"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>

  <xs:element name="iceError">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="message" minOccurs="1" maxOccurs="1" >
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:string">
                <xs:attribute name="showOn" >
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:enumeration value="debug"/>
                      <xs:enumeration value="never"/>
                      <xs:enumeration value="everytime"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <xs:any maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  
</xs:schema>
